-
Notifications
You must be signed in to change notification settings - Fork 11
Adding logic to allow namespace metadata to be honoured on destination #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @ayetealab. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…n environment Signed-off-by: Brian Philip <brian.b.philip@shell.com>
7b18943
to
39d0a51
Compare
Hey there, thanks for your contribution. I think the added logging is a bit excessive, maybe a leftover from your development efforts? More importantly though I am worried about the semantics behind this. It's very easy for the sync agent to be configured to merge objects from many namespaces into a single namespace, and at that point it becomes basically random which workspace/namespace's labels/annotations you copy to the destination. Even worse: By doing this, endusers could, in kcp, set nasty labels and annotations that could interfere with for example policy frameworks like Kyverno on the service provider side (just imagine an enduser setting an imaginary I can see how this can be useful in some circumstances, but I would not make this the default behaviour. Instead I would add a new option to PublishedResources, maybe |
I concur with what @xrstf said, this needs to be an optional feature as its potentially problematic and it should require explicit configuration. Since api-syncagent handles permission claims in the target |
Summary
Propagate Namespace Metadata on Creation
This PR introduces optional propagation of namespace metadata (labels and annotations) from KCP workspaces into destination workload clusters during namespace creation.
What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes #97
Release Notes